toNonZeroInt
Deprecated
Use the Int.toNonZeroIntOrThrow function instead.
Replace with
import kotools.types.number.toNonZeroIntOrThrow
Content copied to clipboard
this.toNonZeroIntOrThrow()
Content copied to clipboard
Returns this value as a NonZeroInt, or throws an NonZeroInt.ConstructionError if this value equals zero.